package com.hao.main;

import GiaoHangVietNam.RawInfor.GlobalStatus;
import android.os.SystemClock;

public class staskBackground {

	public boolean countNumber() {
		int count = 0;
		for (int i = 0; i <= 100; i++) {
			if (GlobalStatus.IsTCPConnecting == true) {
				{
					count++;
					if (count >= 3)
						return true;
				}
			} else {
				count = 0;
			}

			SystemClock.sleep(1000);
		}
		return false;
	}
}
